/*
 * 天虹商场股份有限公司版权所有.
 */
package com.xxl.job.executor.service.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 定时任务
 * <p>
 *
 * @author 谭森
 * @version 1.0.0
 * @date 2019/12/25
 */
@Component
public class TestTaskHandler {
    private static final Logger logger = LoggerFactory.getLogger(TestTaskHandler.class);


    @XxlJob(value = "test1",init = "test1Init",destroy = "test1Destroy")
    public ReturnT<String> test1(String param){
        logger.info("test1 executed...,param:{}",param);
        return ReturnT.SUCCESS;
    }

    private void test1Init(){
        logger.info("test1Init executed...");
    }

    private void test1Destroy(){
        logger.info("test1Destroy executed...");
    }
}
